package com.myh.springcloud.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.myh.springcloud.dao.UserDao;
import com.myh.springcloud.pojo.User;

/*
**2020年7月4日--下午12:14:35
**@version:
**莫耀华:
**@Description:
*/
@Service
public class UserServiceImpl implements UserService{
	
	@Autowired
	private UserDao userDao;
	
	@Override
	public boolean addUser(User user) {
		// TODO Auto-generated method stub
		return userDao.addUser(user);
	}

	@Override
	public User getUserById(Long id) {
		// TODO Auto-generated method stub
		return userDao.getUserById(id);
	}

	@Override
	public List<User> getlistUser() {
		// TODO Auto-generated method stub
		return userDao.getlistUser();
	}

}
